#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) JoinQuant Development Team
# Author: Huayong Kuang <kuanghuayong@joinquant.com>

from multiprocessing import Process


class SubProgram(Process):

    def run(self, *args, **kwargs):
        print(dir(self))
        print("name:", self.name)
        print("args:", args)
        print("kwargs:", kwargs)


SubProgram(name="backtest", args=(1,), kwargs={"a": 1}).start()
SubProgram(name="backtest", args=(1,), kwargs={"a": 1}).start()
